import request from '@/router/axios';
import {prefx} from '@/const/global';

export function login(params){ return request({url:`${prefx}/token/login`,method: 'POST', data:params}); }
export function getUserInfo(params){ return request({url:`${prefx}/token/info`,method: 'GET', params}); }
export function getCaptcha(){ return request({url:`${prefx}/token/captcha`,method: 'GET'}); }
export function logoutApi(){ return request({url:`${prefx}/token/logout`,method: 'GET'}); }


